import re

a = 'python1111java678php]'


r = re.findall('\w', a)
r1 = re.findall('\W', a)
print(r)
print(r1)
